//index.js
//获取应用实例
const app = getApp()

Page({
  data: {
    num:1,
	data:'',
	http:getApp().globalData.map
  },
  onLoad: function () {
	  wx.getStorage({
	  	key: 'uid',
	  	success: (e) => {
	  		console.log(e)
			if(e.data.Vip==1){
				this.setData({
					state:1
				})
			}
	  	}
	  })
    this.push()
	},
	push(){
		wx.request({
			url:getApp().globalData.http+'action=indexYX',
			success:(e)=>{
				console.log(e.data.data)
				this.setData({
					data:e.data.data
				})
			}
		})
	}
})
